package charts.series.dots ;

typedef DEFAULTDOTPROPERTIESSTRUCT = {
	var axis		: String;
	var type		: String;
	var dot_size		: Int;
	var halo_size		: Int;
	var color		: String;
	var tip			: String;
	var alpha		: Int;
	var rotation		: Int;
	var sides		: Int;
	var width		: Int;
};

class DefaultDotProperties extends Properties
{
	//
	// things that all dots share
	//
	public function new (json:Dynamic, color:String, axis:String) {
		// //tr.ace_json(json);
		
		// the user JSON can override any of these:

		var props : DEFAULTDOTPROPERTIESSTRUCT = {
			axis:			axis,
			type:			'dot',
			dot_size: 	5,
			halo_size:	2,
			color:		color,
			tip:			'#val#',
			alpha:			1,
			// this is for anchors:
			rotation:		0,
			sides:			3,
			// this is for hollow dot:
			width:			1
		};

		var parent : Properties = new Properties();

		super( json, parent );
		
		//tr.aces('4', this.get('axis'));
		// //tr.aces('4', this.get('color'));
		// //tr.aces('4', this.get('type'));
	}
}
